@model LetLord.Models.ReferencePhoto

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>ReferencePhoto</legend>

    <div class="display-label">Format</div>
    <div class="display-field">@Model.Format</div>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">File</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.File).ToString()</div>

    <div class="display-label">DateUploaded</div>
    <div class="display-field">@String.Format("{0:g}", Model.DateUploaded)</div>

    <div class="display-label">UserId</div>
    <div class="display-field">@Model.UserId</div>

    <div class="display-label">Tenant</div>
    <div class="display-field">@(Model.Tenant == null ? "None" : Model.Tenant.LastName)</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ImageId }) |
    @Html.ActionLink("Back to List", "Index")
</p>


